<% cache do %>

  <% balance = Balance.new %>

  <h2>Huidige balans</h2>
  <table summary="Tabel met balanzen per persoon" id="balans">
    <tr>
      <th>Naam</th>
      <th>Balans</th>
    </tr>

    <%= render :partial => 'sidebars/balans_item', :collection => balance.balance_items %>

    <tr>
      <td>Controlegetal:</td>
      <td><%= balance.total.round_to_s(3) %></td>
    </tr>		
  </table>
<% end %>